package multi.data;

/*
 * i'm just try the moment
 * 
 * */
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;

public class Share extends Activity implements OnClickListener {
	Button satu, dua;

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.share);

		satu = (Button) findViewById(R.id.buttonShareselect);

		dua = (Button) findViewById(R.id.buttonSharedone);
		satu.setOnClickListener(this);
		dua.setOnClickListener(this);
	}

	public void onClick(View v) {
		// TODO Auto-generated method stub
		if (v == satu) {
			Toast.makeText(this, "sudah terselek", Toast.LENGTH_LONG).show();
		} else if (v == dua) {
			Toast.makeText(this, "Done", Toast.LENGTH_LONG).show();
			Intent i = new Intent(this, Main.class);
			startActivity(i);
		}
	}

}